package com.edmendst.xmall.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class ReviewInfo {
    @JsonProperty("productId")
    private Integer productId;
    @JsonProperty("reviewContent")
    private String reviewContent;
    @JsonProperty("reviewRating")
    private Byte reviewRating;
    @JsonProperty("orderId")
    private String orderId;

    private Integer userId;
    private Integer reviewId;
    private String userName;
    private Date reviewCreateTime;

    private List<String> reviewImageUrls = new ArrayList<>();
    private List<Integer> reviewImageSortOrders = new ArrayList<>();
    private List<ReviewReplyInfo> replies = new ArrayList<>();
}
